#pragma once

#include <QWidget>
#include <Global.h>

namespace Domy {

class AbstractEditorWidget : public QWidget
{
    Q_OBJECT
public:
    explicit AbstractEditorWidget(QWidget *parent = Q_NULLPTR)
        : QWidget(parent) {}
    ~AbstractEditorWidget() {}

    /**
     * @brief triggerAction
     * @note  触发动作
     * @param key 动作key
     */
    virtual void triggerAction(ActionKey key) = 0;
};

} // namespace Domy
